package com.itany.nmms.service;

import com.itany.nmms.entity.Staff;
import com.itany.nmms.exception.CodeErrorException;
import com.itany.nmms.exception.RequestParameterErrorException;
import com.itany.nmms.exception.StaffNotExistException;

public interface StaffService {

    /**
     * 员工登录
     * @param loginName 账号
     * @param password  密码
     * @param role      身份,1001-系统管理员,1002-普通管理员
     * @param code      用户输入的验证码
     * @param image     图片验证码的内容
     * @return
     */
    public Staff login(String loginName, String password, String role, String code, String image) throws RequestParameterErrorException, CodeErrorException, StaffNotExistException;

}
